<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用两种不同的方法来实现一个两列布局，其中左侧部分宽度固定、右侧部分宽度随浏览器宽度的变化而自适应变化 </title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .top {
            width: 100%;
            height: 50px;
            background-color: red;
        }

        .mid {
            width: 100%;
            height: 100%;
            padding-left: 220px;
            position: fixed;
            top:50px;
            bottom: 0;
            background-color: springgreen;
        }
        .nav-left {
            width: 220px;
            height: 100%;
            background-color: blue;
            float: left;
            margin-left: -100%;
            left: -220px;
            position: relative;
        }
        .nav-right {
            width: 100%;
            height: 100%;
            background-color: yellow;
            float: left;
        }
    </style>
</head>
<body>
<div class="wrap">
    <div>
        <div class="top">div1</div>
    </div>
    <div class="mid">
        <div class="nav-right">
            <p>asda</p>
            <p>asda</p>
            <span>asda</span>
            <span>asda</span>
            <span>asda</span>

        </div>
        <div class="nav-left">
            <ul>
                <li>1</li>
                <li>1</li>
                <li>1</li>
                <li>1</li>
            </ul>
        </div>
    </div>
</div>
</body>
</html>